package com.xsh.gls.service;

import com.xsh.gls.pojo.Order;
import org.springframework.stereotype.Component;

import java.sql.SQLException;
import java.util.Date;
import java.util.List;

/**
 * @author shkstart
 * @date 2019/1/21 - 16:02
 */
@Component
public  interface OrderService {


    List<Order> selectByPrimaryKey(String orderNumber)throws SQLException;
    List<Order> selectByOrderNo(String orderNo);
    List<Order> selectByOrNo(String orderNo);
    List<Order> selectByNo(String orderNo,Integer salId);

    List<Order> getByAll(Integer spelno, String orderNumber, String reqNo, Integer sono,Integer shippingType);
    int insertSelective(Order record)throws SQLException;
    List<Order> getByAll(Integer spelno, String orderNumber, String reqNo, Integer sono);

    Order getByOrderNo(String orderNumber);

    boolean updateByPrimaryKeySelective(Order order);

    boolean updateByBookingno(Order record);


    boolean updateDeclareImgById(Order order)throws Exception;
    boolean updateInsureImgById(Order order)throws Exception;




    boolean updateByorderNumber(Order order);

    List<Order> getOrderAll(String orderNumber,Integer bookingid, Integer statusid,String exportorgname,
                            Integer salesmanid,String customerName);

    Order selectByN(Integer id);
    List<Order> orderSelectByOwn(String orderNumber,int CusId)throws  SQLException;
    //订单中心
    List<Order> orderCenter(Order order);

    boolean getByspelnos(int spelno);

    Order getByNewOrderNo(String orderNumber);

    Order queryOrderById(Integer id)throws Exception;

    boolean finshUpdate(Order order)throws Exception;
    boolean forfinshUpdate(String[] checkIDs)throws Exception;
    List<Order>  queryOrderByEare(Order order)throws Exception;

    boolean getByLWOrderNo(String[] orderNumber);

    boolean updatechuku(Order order);

    boolean updateruku(Order order);


    Order selectByPay(String id)throws Exception;

    boolean updateJiedan(Order order)throws Exception;

    boolean updateAllJiedan(String[] orderNumber,Integer salemanid)throws Exception;

    boolean updatepay(String  orderNumber)throws Exception;
    boolean update(Order order);

    List<Order> selectecharts(String finshtime);
}